package com.letoken.platform.repo.admin.res.config;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.letoken.platform.pub.req.QueryReqBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "根据id公告配置返回对象", description = "根据id公告配置返回对象")
public class QueryAnnouncementByIdRes {

    @ApiModelProperty(name = "id", value = "编号")
    private Long id;

    @ApiModelProperty(name = "title", value = "公告标题")
    private String title;

    @ApiModelProperty(name = "content", value = "公告内容")
    private String content;

    @ApiModelProperty(name = "pid", value = "父编号")
    private Long pid;
    
    @ApiModelProperty(name = "isShow", value = "是否展示")
    private Boolean isShow;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "isShow", value = "开始时间")
    private LocalDateTime publishTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "sendTime", value = "结束时间")
    private LocalDateTime expireTime;

}
